<include file="./Application/Admin/View/Public/htmlheader.html" />
<include file="./Application/Admin/View/Public/header.html" />
<include file="./Application/Admin/View/Public/left.html" />

<ol class="breadcrumb">
    <li><a href="/Admin/Room/roomBind">直播间绑定</a></li>
    <li class="active">修改绑定信息</li>
</ol>
<form action="__ROOT__/Admin/Room/modifyLiveSetting" method="post">
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>直播间名称：</div>
        <div class="col-lg-3"><input type="text" name="address" value="{$room.name}" disabled class="form-control" /></div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><p><span class="red">*</span>所属教师：</p></div>
        <div class="col-lg-3">
            <select class="form-control" name="teacherId" id="teacherId">
                <foreach name="teacherList" item="vo">
                    <option value="{$vo.id}">{$vo.name}</option>
                </foreach>
            </select>
        </div>
    </div>
    <br/>
    <div class="row">
        <div class="col-lg-3 text-right"><p><span class="red">*</span>试卷绑定：</p></div>
        <div class="col-lg-3">
            <select class="form-control" name="paperId" id="paperId">
                <foreach name="paper" item="vo">
                    <option value="0">暂无试卷</option>
                    <option value="{$vo.id}">{$vo.name}</option>
                </foreach>
            </select>
        </div>
    </div>
    <br/>
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>直播通道名称：</div>
        <div class="col-lg-3">
            <select class="form-control" name="liveUrlId" id="liveUrlId">
                <foreach name="liveUrlList" item="vo">
                    <option value="{$vo.id}">{$vo.address}{$vo.channel}</option>
                </foreach>
            </select>
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right">备注：</div>
        <div class="col-lg-3"><input type="text" name="remark" value="{$liveSetting.remark}" class="form-control" /></div>
    </div>
    <br />
    <input type="hidden" name="id" value="{$liveSetting['id']}">
    <br />
    <div class="row">
        <div class="col-lg-3"></div>
        <div class="col-lg-3"><button type="submit" class="btn btn-primary">确定</button></div>
    </div>
</form>
<script>
    $("#liveUrlId").val("{$liveSetting['liveUrlId']}");
    $("#teacherId").val("{$liveSetting['teacherId']}");
    $("#paperId").val("{$liveSetting['paperId']}");
</script>
<include file="./Application/Admin/View/Public/footer.html" />